package com.ruoyi.project.wechat.service;

import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.wechat.domain.WxOpenLoginConfig;
import me.chanjar.weixin.common.error.WxErrorException;

import java.util.List;

public interface WxOpenLoginConfigService {


    int deleteByPrimaryKey(Integer id);

    int insert(WxOpenLoginConfig record);

    int insertSelective(WxOpenLoginConfig record);

    WxOpenLoginConfig selectByPrimaryKey(Integer id);

    WxOpenLoginConfig selectByAppId(String appId);

    int updateByPrimaryKeySelective(WxOpenLoginConfig record);

    int updateByPrimaryKey(WxOpenLoginConfig record);

    String getWxLoginImage();

    AjaxResult getWxAccessToken(String code);

    String getAuthorizerToken(String appId) throws WxErrorException;

    String getAuthorizerRefreshToken(String appId) throws WxErrorException;

}


